package com.crm.common.crm.entity.BO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.crm.common.ka.core.entity.PageEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = true)
@ToString
@ApiModel("投放")
public class CrmRoiPutinPageBO extends PageEntity {


    @TableId(value = "leads_id", type = IdType.AUTO)
    private Integer putinId;

    @ApiModelProperty(value = "消耗渠道")
    private String putinPlatform;

    @ApiModelProperty(value = "消耗日期")
    private Date putinFormDate;

    @ApiModelProperty(value = "开始消耗日期")
    @TableField(exist = false)
    private Date startPutinFormDate;

    @ApiModelProperty(value = "结束消耗日期")
    @TableField(exist = false)
    private Date endPutinFormDate;

    @ApiModelProperty(value = "消耗金额")
    private BigDecimal putinMoney;

    @ApiModelProperty(value = "部门Id")
    private Integer deptId;

    @ApiModelProperty(value = "部门Id")
    @TableField(exist = false)
    private List<Integer> deptIds;

    @ApiModelProperty(value = "部门Id")
    @TableField(exist = false)
    private List<Integer> deptIdList;

    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String deptName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField(exist = false)
    private String createUserName;

    @ApiModelProperty(value = "更新人ID")
    private Long updateUserId;

    @ApiModelProperty(value = "更新人名称")
    @TableField(exist = false)
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "年份")
    @TableField(exist = false)
    private String year;

    @ApiModelProperty(value = "月度")
    @TableField(exist = false)
    private String month;

    @ApiModelProperty(value = "用户Id")
    private List<Long> userIdList;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序")
    private Integer order;

    @ApiModelProperty(value = "是否权限")
    private Integer isAuth;

}
